//
//  CustomSlider.m
//  FanhaniOS
//
//  Created by WangZhenyu on 2020/8/27.
//  Copyright © 2020 WangZhenyu. All rights reserved.
//

#import "CustomSlider.h"

@implementation CustomSlider

-(CGRect)thumbRectForBounds:(CGRect)bounds trackRect:(CGRect)rect value:(float)value{
    
    rect.origin.x=rect.origin.x-10;
    rect.size.width=rect.size.width+20;
    
    return CGRectInset([super thumbRectForBounds:bounds trackRect:rect value:value],10,10);
}


- (CGRect)trackRectForBounds:(CGRect)bounds {
    bounds.origin.y = bounds.origin.y + 10;
    bounds.size.height = 2;
    self.layer.cornerRadius = 1.0;
    return bounds;
}

@end
